BIN=myproc.exe 
#SRC=$(Shell ls *.c)
SRC=$(wildcard *.c)
OBJ=$(SRC:.c=.o)
CC=gcc
FLAG=-o
RM=rm -rf

$(BIN):$(OBJ) 
	$(CC) $(FLAG) $@ $^
$(OBJ):$(SRC)
	$(CC) -c $(SRC)

.PHONY:clean 
clean:
	$(RM) $(BIN)

.PHONY:test
test:
	@echo $(BIN)
	@echo $(SRC)
	@echo $(CC)
	@echo $(FLAG)
	@echo $(RM)

